package com.he.duitesmodel;

import com.he.duitesmodel.hander.LeaveRequest;
import com.he.duitesmodel.hander.concretehander.BossHander;
import com.he.duitesmodel.hander.concretehander.DirectorHander;
import com.he.duitesmodel.hander.concretehander.ManagerHander;

public class Client {
    public static void main(String[] args) {
        LeaveRequest leaveRequest = new ManagerHander();
        LeaveRequest leaveRequest1 = new DirectorHander();
        LeaveRequest leaveRequest2 = new BossHander();
        //经理设下一级审批人
        leaveRequest.setLeaveRequest(leaveRequest1);
        //总监设下一级审批人
        leaveRequest1.setLeaveRequest(leaveRequest2);
        leaveRequest.handerLeave(5);

    }
}
